#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include "connection_db.h"

namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();
    void ReadXml(); //读取xml文件并显示
    void bangding();    //点击事件(在控制台显示并保存入数据库)
private:
    connection_db c_db;
    Ui::Widget *ui;
};

#endif // WIDGET_H
